Skip to content

BUG: Make optimal bootstrap block length invariant to extreme scaling - #1045

Open
yqia03 wants to merge 1 commit into
bashtage:mainfrom
yqia03:fix/optimal-block-length-scaling
Open

yqia03 wants to merge 1 commit into
bashtage:mainfrom
yqia03:fix/optimal-block-length-scaling

Conversation

@yqia03

@yqia03 yqia03 commented Nov 30, 2026

Copy link
Copy Markdown

Summary

The bootstrap block-length estimator is scale invariant, but intermediate products can underflow or overflow for a finite series at extreme magnitudes. Scale each input column by a power of two before centering so the ratios stay in range.

Validation

Both regression cases failed before the change. After it, multiplying the series by 2^-400 or 2^400 preserves both stationary and circular block-length estimates. The related macOS CPU run passed 48 checks using the pure Python sampler. Ruff, Black, isort and the implementation docstring check passed. Compiled extensions and the full project matrix were not rerun locally.

OpenAI Codex prepared the patch and ran the checks. No human pre-submission review was performed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T16:52:45.726204Z 5d7ba2b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.50%. Comparing base (d3e858f) to head (5d7ba2b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1045   +/-   ##
=======================================
  Coverage   99.50%   99.50%           
=======================================
  Files         154      154           
  Lines       34868    34878   +10     
  Branches     2639     2639           
=======================================
+ Hits        34694    34704   +10     
  Misses         98       98           
  Partials       76       76           
Flag Coverage Δ
adder 99.44% <100.00%> (+<0.01%) ⬆️
subtractor 99.44% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bashtage

bashtage commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Is this a real problem or just the type of thing AI finds as a potential issue?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants